package com.tz.cartelo.result;


import com.tz.cartelo.constant.Key;

/**
 * Base result of http request.
 * Created by chris on 16/7/18.
 */
public class Result {

//    @SerializedName("status")
    private String state;
    private String msg;

    public boolean isSuccess() {
        return state.equals(Key.POST_SUCCEED);
    }

    public String getMessage() {
        return msg;
    }

    public void setMessage(String message) {
        this.msg = message;
    }
}
